{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Heike.Kluever\Dropbox\Kluver&Sagarzazu\PSRM Submission\Replication materials\SagarzazuKluever_ReplicationLogFile.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}11 May 2015, 11:53:54
{txt}
{com}. 
. 
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. 
. 
. * ==================
. * Figure 1 
. * ==================
. 
. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. tsset issue ym
{res}{txt}{col 8}panel variable:  {res}issue (strongly balanced)
{txt}{col 9}time variable:  {res}{col 25}ym, 480 to 611
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. gen ln_ed = ln(ed_p_)
{txt}(169 missing values generated)

{com}. tssmooth ma ma_ed = ed_p_, window(6)
{txt}The smoother applied was
{res}{p 5 5 5} by issue : (1/6)*[x(t-6) + x(t-5) + x(t-4) + x(t-3) + x(t-2) + x(t-1) + 0*x(t)]; x(t)= ed_p_{p_end}
{txt}
{com}. 
. 
. ** a) Economy 
. 
. preserve
{txt}
{com}. keep if issue == 2
{txt}(2508 observations deleted)

{com}. tsline ma_ed, /*
> */ ytitle("Issue diversity") xtitle("") title("") scheme(s2mono) graphregion(fcolor(white)) ylabel(, nogrid) plotregion(fcolor(white)) /*
> */ xline(512 548 596,  lpattern(dash))  /*
> */ xlabel(496.5 "Schroeder I" 530.5 "Schroeder II" 572 "Merkel I" 603.5 "Merkel II")
{res}{txt}
{com}. graph export "figure1a.png", as(png) replace
{txt}(file figure1a.png written in PNG format)

{com}. restore
{txt}
{com}. 
. 
. 
. ** b) Environment
. 
. preserve
{txt}
{com}. keep if issue == 4
{txt}(2508 observations deleted)

{com}. tsline ma_ed, /*
> */ ytitle("Issue diversity") xtitle("") title("") scheme(s2mono) graphregion(fcolor(white)) ylabel(, nogrid) plotregion(fcolor(white)) /*
> */ xline(512 548 596,  lpattern(dash))  /*
> */ xlabel(496.5 "Schroeder I" 530.5 "Schroeder II" 572 "Merkel I" 603.5 "Merkel II")
{res}{txt}
{com}. graph export "figure1b.png", as(png) replace
{txt}(file figure1b.png written in PNG format)

{com}. restore
{txt}
{com}. 
. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. 
. 
. * ==================
. * Table 1 
. * ==================
. 
. cd "C:\Users\Heike.Kluever\Dropbox\Kluver&Sagarzazu\PSRM Submission\Replication materials"
{res}C:\Users\Heike.Kluever\Dropbox\Kluver&Sagarzazu\PSRM Submission\Replication materials
{txt}
{com}. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. xtset issue id
{res}{txt}{col 8}panel variable:  {res}issue (strongly balanced)
{txt}{col 9}time variable:  {res}{col 25}id, 1 to 132
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. 
. ** Model 1
. ** =======
. quietly: xtpcse log_ed_p  months2election months_sq ep_election reg_election mip unempl  bse cdu_crisis terror afghan flood worldcup crisis l.log_ed_p i.issue 
{txt}
{com}. est store model1
{txt}
{com}. 
. 
. ** Model 2
. ** =======
. quietly: xtpcse log_ed_p  months2election months_sq ep_election reg_election mip unempl  bse cdu_crisis terror afghan flood worldcup crisis i.coalition l.log_ed_p    i.issue 
{txt}
{com}. est store model2
{txt}
{com}. 
. 
. * Display results
. estout model1 model2, cells(b(fmt(3) star) se(par fmt(3))) stats(N r2 , fmt(4)) label
{res}
{txt}{hline 52}
{txt}                           model1          model2   
{txt}                             b/se            b/se   
{txt}{hline 52}
{txt}Number of months t~o{res}       -0.026*         -0.022*  {txt}
                    {res}      (0.010)         (0.010)   {txt}
{txt}Number of months t~o{res}        0.001**         0.001** {txt}
                    {res}      (0.000)         (0.000)   {txt}
{txt}European Parliamen~n{res}        0.184           0.187   {txt}
                    {res}      (0.243)         (0.243)   {txt}
{txt}State Parliament E~n{res}       -0.104          -0.118   {txt}
                    {res}      (0.079)         (0.079)   {txt}
{txt}Most important pro~m{res}        0.002           0.002   {txt}
                    {res}      (0.005)         (0.005)   {txt}
{txt}Unemployment        {res}       -0.128***       -0.103** {txt}
                    {res}      (0.032)         (0.035)   {txt}
{txt}BSE crisis          {res}       -0.101          -0.099   {txt}
                    {res}      (0.206)         (0.205)   {txt}
{txt}CDU funding scandal {res}       -0.002           0.139   {txt}
                    {res}      (0.141)         (0.148)   {txt}
{txt}9/11 Terror attacks {res}        0.276           0.332   {txt}
                    {res}      (0.250)         (0.250)   {txt}
{txt}Afghanistan War     {res}       -0.292          -0.312   {txt}
                    {res}      (0.268)         (0.266)   {txt}
{txt}Flood               {res}       -0.062           0.101   {txt}
                    {res}      (0.331)         (0.339)   {txt}
{txt}2006 Worldcup       {res}       -0.003          -0.146   {txt}
                    {res}      (0.234)         (0.237)   {txt}
{txt}Economic crisis     {res}       -0.336**        -0.225   {txt}
                    {res}      (0.114)         (0.148)   {txt}
{txt}L.log_ed_p          {res}        0.035           0.029   {txt}
                    {res}      (0.024)         (0.024)   {txt}
{txt}Infrastructure      {res}        0.000           0.000   {txt}
                    {res}          (.)             (.)   {txt}
{txt}Economy             {res}       -0.252          -0.246   {txt}
                    {res}      (0.161)         (0.161)   {txt}
{txt}Education           {res}       -0.274*         -0.271   {txt}
                    {res}      (0.138)         (0.138)   {txt}
{txt}Environment         {res}       -0.228          -0.227   {txt}
                    {res}      (0.153)         (0.153)   {txt}
{txt}Energy              {res}       -0.503**        -0.510***{txt}
                    {res}      (0.153)         (0.153)   {txt}
{txt}Defence             {res}       -0.506**        -0.511** {txt}
                    {res}      (0.167)         (0.167)   {txt}
{txt}Civil Rights        {res}        0.692***        0.697***{txt}
                    {res}      (0.153)         (0.153)   {txt}
{txt}Taxes               {res}       -0.178          -0.177   {txt}
                    {res}      (0.162)         (0.162)   {txt}
{txt}Employment and Soc~l{res}       -0.056          -0.038   {txt}
                    {res}      (0.345)         (0.345)   {txt}
{txt}European Union      {res}        0.334*          0.339*  {txt}
                    {res}      (0.162)         (0.162)   {txt}
{txt}Agriculture         {res}       -0.219          -0.221   {txt}
                    {res}      (0.144)         (0.144)   {txt}
{txt}Equal Opportunities {res}       -0.392**        -0.398** {txt}
                    {res}      (0.147)         (0.147)   {txt}
{txt}International       {res}       -0.148          -0.148   {txt}
                    {res}      (0.138)         (0.138)   {txt}
{txt}L�nder              {res}        0.029           0.030   {txt}
                    {res}      (0.130)         (0.130)   {txt}
{txt}Culture             {res}       -0.329*         -0.335*  {txt}
                    {res}      (0.152)         (0.152)   {txt}
{txt}Municipalities      {res}       -0.237          -0.233   {txt}
                    {res}      (0.138)         (0.138)   {txt}
{txt}Health              {res}       -0.095          -0.094   {txt}
                    {res}      (0.165)         (0.165)   {txt}
{txt}Development aid     {res}        0.213           0.219   {txt}
                    {res}      (0.156)         (0.156)   {txt}
{txt}Budget              {res}        0.014           0.014   {txt}
                    {res}      (0.163)         (0.163)   {txt}
{txt}Family              {res}       -0.041          -0.037   {txt}
                    {res}      (0.136)         (0.136)   {txt}
{txt}coalition=1         {res}                        0.000   {txt}
                    {res}                          (.)   {txt}
{txt}coalition=2         {res}                        0.181   {txt}
                    {res}                      (0.093)   {txt}
{txt}coalition=3         {res}                       -0.104   {txt}
                    {res}                      (0.206)   {txt}
{txt}_cons               {res}       -2.163***       -2.623***{txt}
                    {res}      (0.425)         (0.460)   {txt}
{txt}{hline 52}
{txt}N                   {res}    2300.0000       2300.0000   {txt}
{txt}r2                  {res}       0.0948          0.1006   {txt}
{txt}{hline 52}

{com}. 
. 
. * Saving and exporting results for figure 2 (R code)
. gen lag_dv = l.log_ed_p
{txt}(189 missing values generated)

{com}. tabulate issue, gen(issue_dum)

                {txt}issue {c |}      Freq.     Percent        Cum.
{hline 22}{c +}{hline 35}
       Infrastructure {c |}{res}        132        5.00        5.00
{txt}              Economy {c |}{res}        132        5.00       10.00
{txt}            Education {c |}{res}        132        5.00       15.00
{txt}          Environment {c |}{res}        132        5.00       20.00
{txt}               Energy {c |}{res}        132        5.00       25.00
{txt}              Defence {c |}{res}        132        5.00       30.00
{txt}         Civil Rights {c |}{res}        132        5.00       35.00
{txt}                Taxes {c |}{res}        132        5.00       40.00
{txt}Employment and Social {c |}{res}        132        5.00       45.00
{txt}       European Union {c |}{res}        132        5.00       50.00
{txt}          Agriculture {c |}{res}        132        5.00       55.00
{txt}  Equal Opportunities {c |}{res}        132        5.00       60.00
{txt}        International {c |}{res}        132        5.00       65.00
{txt}               L�nder {c |}{res}        132        5.00       70.00
{txt}              Culture {c |}{res}        132        5.00       75.00
{txt}       Municipalities {c |}{res}        132        5.00       80.00
{txt}               Health {c |}{res}        132        5.00       85.00
{txt}      Development aid {c |}{res}        132        5.00       90.00
{txt}               Budget {c |}{res}        132        5.00       95.00
{txt}               Family {c |}{res}        132        5.00      100.00
{txt}{hline 22}{c +}{hline 35}
                Total {c |}{res}      2,640      100.00
{txt}
{com}. 
. xtpcse log_ed_p  months2election months_sq ep_election reg_election mip unempl  bse cdu_crisis terror afghan flood worldcup crisis lag_dv issue_dum2 issue_dum3 issue_dum4 issue_dum5 issue_dum6 issue_dum7 issue_dum8 issue_dum9 issue_dum10 issue_dum11 issue_dum12 issue_dum13 issue_dum14 issue_dum15 issue_dum16 issue_dum17 issue_dum18 issue_dum19 issue_dum20 

{txt}Number of gaps in sample:  {res}140
{txt}(note: the number of observations per panel, e(n_sigma) = 44,
       used to compute the disturbance of covariance matrix e(Sigma)
       is less than half of the average number of observations per panel,
       e(n_avg) = 115; you may want to consider the pairwise option)
{res}
{txt}Linear regression, correlated panels corrected standard errors (PCSEs)

Group variable:{col 19}{res}issue{col 49}{txt}Number of obs{col 68}= {res}     2300
{txt}Time variable:{col 19}{res}id{col 49}{txt}Number of groups{col 68}= {res}       20
{txt}Panels:{col 19}{res}correlated (unbalanced){col 49}{txt}Obs per group: min{col 68}= {res}       95
{txt}Autocorrelation:{col 19}{res}no autocorrelation{col 64}{txt}avg{col 68}= {res}      115
{txt}Sigma computed by {col 19}{res}casewise selection{txt}{col 64}max{col 68}= {res}      123
{txt}Estimated covariances{col 28}= {res}      210{col 49}{txt}R-squared{col 68}= {res}   0.0948
{txt}Estimated autocorrelations{col 28}= {res}        0{col 49}{txt}Wald chi2({res}33{txt}){col 68}= {res}   317.30
{txt}Estimated coefficients{col 28}= {res}       34{col 49}{txt}Prob > chi2{col 68}= {res}   0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}Panel-corrected
{col 1}       log_ed_p{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
months2election {c |}{col 17}{res}{space 2}-.0255594{col 29}{space 2} .0100485{col 40}{space 1}   -2.54{col 49}{space 3}0.011{col 57}{space 4}-.0452541{col 70}{space 3}-.0058647
{txt}{space 6}months_sq {c |}{col 17}{res}{space 2} .0006623{col 29}{space 2} .0002077{col 40}{space 1}    3.19{col 49}{space 3}0.001{col 57}{space 4} .0002552{col 70}{space 3} .0010695
{txt}{space 4}ep_election {c |}{col 17}{res}{space 2} .1844398{col 29}{space 2} .2426388{col 40}{space 1}    0.76{col 49}{space 3}0.447{col 57}{space 4}-.2911236{col 70}{space 3} .6600031
{txt}{space 3}reg_election {c |}{col 17}{res}{space 2}-.1040099{col 29}{space 2} .0789241{col 40}{space 1}   -1.32{col 49}{space 3}0.188{col 57}{space 4}-.2586982{col 70}{space 3} .0506785
{txt}{space 12}mip {c |}{col 17}{res}{space 2} .0019286{col 29}{space 2} .0050763{col 40}{space 1}    0.38{col 49}{space 3}0.704{col 57}{space 4}-.0080208{col 70}{space 3}  .011878
{txt}{space 9}unempl {c |}{col 17}{res}{space 2}-.1275766{col 29}{space 2} .0317183{col 40}{space 1}   -4.02{col 49}{space 3}0.000{col 57}{space 4}-.1897433{col 70}{space 3}-.0654098
{txt}{space 12}bse {c |}{col 17}{res}{space 2}-.1013726{col 29}{space 2} .2062964{col 40}{space 1}   -0.49{col 49}{space 3}0.623{col 57}{space 4}-.5057061{col 70}{space 3}  .302961
{txt}{space 5}cdu_crisis {c |}{col 17}{res}{space 2} -.001929{col 29}{space 2} .1412549{col 40}{space 1}   -0.01{col 49}{space 3}0.989{col 57}{space 4}-.2787836{col 70}{space 3} .2749255
{txt}{space 9}terror {c |}{col 17}{res}{space 2} .2756127{col 29}{space 2} .2499052{col 40}{space 1}    1.10{col 49}{space 3}0.270{col 57}{space 4}-.2141925{col 70}{space 3} .7654179
{txt}{space 9}afghan {c |}{col 17}{res}{space 2}-.2917535{col 29}{space 2}  .267595{col 40}{space 1}   -1.09{col 49}{space 3}0.276{col 57}{space 4}-.8162301{col 70}{space 3} .2327231
{txt}{space 10}flood {c |}{col 17}{res}{space 2}-.0616084{col 29}{space 2} .3307888{col 40}{space 1}   -0.19{col 49}{space 3}0.852{col 57}{space 4}-.7099426{col 70}{space 3} .5867257
{txt}{space 7}worldcup {c |}{col 17}{res}{space 2}  -.00315{col 29}{space 2} .2341203{col 40}{space 1}   -0.01{col 49}{space 3}0.989{col 57}{space 4}-.4620173{col 70}{space 3} .4557173
{txt}{space 9}crisis {c |}{col 17}{res}{space 2}   -.3356{col 29}{space 2}   .11426{col 40}{space 1}   -2.94{col 49}{space 3}0.003{col 57}{space 4}-.5595454{col 70}{space 3}-.1116545
{txt}{space 9}lag_dv {c |}{col 17}{res}{space 2} .0349104{col 29}{space 2}  .024392{col 40}{space 1}    1.43{col 49}{space 3}0.152{col 57}{space 4} -.012897{col 70}{space 3} .0827178
{txt}{space 5}issue_dum2 {c |}{col 17}{res}{space 2}-.2516247{col 29}{space 2} .1608556{col 40}{space 1}   -1.56{col 49}{space 3}0.118{col 57}{space 4}-.5668958{col 70}{space 3} .0636464
{txt}{space 5}issue_dum3 {c |}{col 17}{res}{space 2}-.2744311{col 29}{space 2} .1382711{col 40}{space 1}   -1.98{col 49}{space 3}0.047{col 57}{space 4}-.5454376{col 70}{space 3}-.0034247
{txt}{space 5}issue_dum4 {c |}{col 17}{res}{space 2}-.2278908{col 29}{space 2} .1532253{col 40}{space 1}   -1.49{col 49}{space 3}0.137{col 57}{space 4}-.5282069{col 70}{space 3} .0724254
{txt}{space 5}issue_dum5 {c |}{col 17}{res}{space 2}-.5030629{col 29}{space 2} .1530165{col 40}{space 1}   -3.29{col 49}{space 3}0.001{col 57}{space 4}-.8029697{col 70}{space 3}-.2031562
{txt}{space 5}issue_dum6 {c |}{col 17}{res}{space 2}-.5057642{col 29}{space 2} .1670473{col 40}{space 1}   -3.03{col 49}{space 3}0.002{col 57}{space 4}-.8331708{col 70}{space 3}-.1783576
{txt}{space 5}issue_dum7 {c |}{col 17}{res}{space 2} .6916066{col 29}{space 2} .1530461{col 40}{space 1}    4.52{col 49}{space 3}0.000{col 57}{space 4} .3916418{col 70}{space 3} .9915714
{txt}{space 5}issue_dum8 {c |}{col 17}{res}{space 2}-.1775343{col 29}{space 2} .1620283{col 40}{space 1}   -1.10{col 49}{space 3}0.273{col 57}{space 4}-.4951039{col 70}{space 3} .1400354
{txt}{space 5}issue_dum9 {c |}{col 17}{res}{space 2}-.0564948{col 29}{space 2} .3453217{col 40}{space 1}   -0.16{col 49}{space 3}0.870{col 57}{space 4}-.7333128{col 70}{space 3} .6203232
{txt}{space 4}issue_dum10 {c |}{col 17}{res}{space 2} .3344202{col 29}{space 2} .1616263{col 40}{space 1}    2.07{col 49}{space 3}0.039{col 57}{space 4} .0176385{col 70}{space 3} .6512019
{txt}{space 4}issue_dum11 {c |}{col 17}{res}{space 2}-.2191189{col 29}{space 2} .1439178{col 40}{space 1}   -1.52{col 49}{space 3}0.128{col 57}{space 4}-.5011925{col 70}{space 3} .0629547
{txt}{space 4}issue_dum12 {c |}{col 17}{res}{space 2}-.3919849{col 29}{space 2} .1471868{col 40}{space 1}   -2.66{col 49}{space 3}0.008{col 57}{space 4}-.6804658{col 70}{space 3} -.103504
{txt}{space 4}issue_dum13 {c |}{col 17}{res}{space 2}-.1481645{col 29}{space 2} .1380724{col 40}{space 1}   -1.07{col 49}{space 3}0.283{col 57}{space 4}-.4187814{col 70}{space 3} .1224524
{txt}{space 4}issue_dum14 {c |}{col 17}{res}{space 2} .0286641{col 29}{space 2}  .130153{col 40}{space 1}    0.22{col 49}{space 3}0.826{col 57}{space 4}-.2264311{col 70}{space 3} .2837593
{txt}{space 4}issue_dum15 {c |}{col 17}{res}{space 2}-.3287145{col 29}{space 2} .1521893{col 40}{space 1}   -2.16{col 49}{space 3}0.031{col 57}{space 4}-.6270001{col 70}{space 3}-.0304289
{txt}{space 4}issue_dum16 {c |}{col 17}{res}{space 2}-.2366362{col 29}{space 2} .1379315{col 40}{space 1}   -1.72{col 49}{space 3}0.086{col 57}{space 4}-.5069769{col 70}{space 3} .0337045
{txt}{space 4}issue_dum17 {c |}{col 17}{res}{space 2}-.0950821{col 29}{space 2} .1647042{col 40}{space 1}   -0.58{col 49}{space 3}0.564{col 57}{space 4}-.4178964{col 70}{space 3} .2277322
{txt}{space 4}issue_dum18 {c |}{col 17}{res}{space 2} .2132082{col 29}{space 2} .1561149{col 40}{space 1}    1.37{col 49}{space 3}0.172{col 57}{space 4}-.0927714{col 70}{space 3} .5191878
{txt}{space 4}issue_dum19 {c |}{col 17}{res}{space 2} .0136464{col 29}{space 2} .1626118{col 40}{space 1}    0.08{col 49}{space 3}0.933{col 57}{space 4}-.3050669{col 70}{space 3} .3323597
{txt}{space 4}issue_dum20 {c |}{col 17}{res}{space 2} -.040649{col 29}{space 2} .1361638{col 40}{space 1}   -0.30{col 49}{space 3}0.765{col 57}{space 4}-.3075251{col 70}{space 3}  .226227
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-2.163387{col 29}{space 2} .4254469{col 40}{space 1}   -5.08{col 49}{space 3}0.000{col 57}{space 4}-2.997248{col 70}{space 3}-1.329527
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. drop if e(sample) ~= 1
{txt}(340 observations deleted)

{com}. saveold Rdata, replace
{txt}file Rdata.dta saved

{com}. 
. matrix V=e(V)
{txt}
{com}. svmat V, names(vvector)
{txt}
{com}. outsheet vvector* using varcov.csv, comma replace
{txt}
{com}. 
. matrix b=e(b) 
{txt}
{com}. svmat b, names(fixeff)
{txt}
{com}. outsheet fixeff* using fixeff.csv, comma replace
{txt}
{com}. 
. 
. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. *****************************************************************************************************************************************************************
. 
. * ============
. * Appendix
. * ============
. 
. 
. /*** Figure A.1 ***/
. 
. use "SagarzazuKluever_ReplicationData2.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. 
. *** a) SPD-GREENS
.                   
. graph bar c_4 c_9 c_13 if party=="SPD" | party=="GREENS" & pm<3, /*
> */ asy over(party) scheme(lean2) legend(label(1 "Environment") label(2 "Employment/Social") label(3 "International") pos(6) cols(3))             
{txt}(note: scheme lean2 not found, using s2color)
{res}{txt}
{com}. graph export "figureA1a.png", as(png) replace
{txt}(file figureA1a.png written in PNG format)

{com}.                   
. *** b) CDU/CSU-SPD
.  
. graph bar c_2 c_9 c_20 if party=="SPD" | party=="CDU/CSU" & pm==3, /*
> */ asy over(party) scheme(lean2) legend(label(1 "Economy") label(2 "Employment/Social") label(3 "Family") pos(6) cols(3))
{txt}(note: scheme lean2 not found, using s2color)
{res}{txt}
{com}. graph export "figureA1b.png", as(png) replace
{txt}(file figureA1b.png written in PNG format)

{com}. 
. *** c) CDU-FDP
.                         
. graph bar c_2 c_7 c_20 if party=="FDP" | party=="CDU/CSU" & pm==4, /*
> */ asy over(party) scheme(lean2) legend(label(1 "Economy") label(2 "Legal affairs") label(3 "Family") pos(6) cols(3))
{txt}(note: scheme lean2 not found, using s2color)
{res}{txt}
{com}. graph export "figureA1c.png", as(png) replace
{txt}(file figureA1c.png written in PNG format)

{com}. 
.  
. 
. 
. *****************************************************************************************************************************************************************
. 
. /*** Figure A.2 ***/
. 
. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. tsset issue ym
{res}{txt}{col 8}panel variable:  {res}issue (strongly balanced)
{txt}{col 9}time variable:  {res}{col 25}ym, 480 to 611
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. tssmooth ma ma_sr_ = p_sr_, window(6)
{txt}The smoother applied was
{res}{p 5 5 5} by issue : (1/6)*[x(t-6) + x(t-5) + x(t-4) + x(t-3) + x(t-2) + x(t-1) + 0*x(t)]; x(t)= p_sr_{p_end}
{txt}
{com}. tssmooth ma ma_jr_ = p_jr_, window(6)
{txt}The smoother applied was
{res}{p 5 5 5} by issue : (1/6)*[x(t-6) + x(t-5) + x(t-4) + x(t-3) + x(t-2) + x(t-1) + 0*x(t)]; x(t)= p_jr_{p_end}
{txt}
{com}. 
. 
. ** a) Economy 
. 
. preserve
{txt}
{com}. keep if issue == 2
{txt}(2508 observations deleted)

{com}. 
. tsline ma_sr_ ma_jr_ , /*
> */ ytitle("Issue attention(MA)") xtitle("") title("") scheme(s2mono) graphregion(fcolor(white)) ylabel(, nogrid) plotregion(fcolor(white)) /*
> */ xline(512 548 596,  lpattern(dash))  legend(label(1 "Senior partner") label(2 "Junior partner"))/*
> */ xlabel(496.5 "Schroeder I" 530.5 "Schroeder II" 572 "Merkel I" 603.5 "Merkel II")
{res}{txt}
{com}. graph export "figureA2a.png", as(png) replace
{txt}(file figureA2a.png written in PNG format)

{com}. restore
{txt}
{com}. 
. 
. ** b) Environment
. 
. preserve
{txt}
{com}. keep if issue == 4
{txt}(2508 observations deleted)

{com}. 
. tsline ma_sr_ ma_jr_ , /*
> */ ytitle("Issue attention(MA)") xtitle("") title("") scheme(s2mono) graphregion(fcolor(white)) ylabel(, nogrid) plotregion(fcolor(white)) /*
> */ xline(512 548 596,  lpattern(dash))  legend(label(1 "Senior partner") label(2 "Junior partner"))/*
> */ xlabel(496.5 "Schroeder I" 530.5 "Schroeder II" 572 "Merkel I" 603.5 "Merkel II")
{res}{txt}
{com}. graph export "figureA2b.png", as(png) replace
{txt}(file figureA2b.png written in PNG format)

{com}. restore
{txt}
{com}. 
. 
. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. 
. /*** Table A.2 ***/
. 
. use SagarzazuKluever_ReplicationData2.dta, clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. /* Table: Press Releases Party x Year */
. 
. tab year party if year>=2000 & year<=2010

           {txt}{c |}                   party2
      year {c |}   CDU/CSU        FDP     GREENS        SPD {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2000 {c |}{res}         0        953        812      1,107 {txt}{c |}{res}     2,872 
{txt}      2001 {c |}{res}     1,919        974        702        970 {txt}{c |}{res}     4,565 
{txt}      2002 {c |}{res}     1,117        664        652      1,045 {txt}{c |}{res}     3,478 
{txt}      2003 {c |}{res}     1,426        752        831        893 {txt}{c |}{res}     3,902 
{txt}      2004 {c |}{res}     1,372      1,044        951      1,174 {txt}{c |}{res}     4,541 
{txt}      2005 {c |}{res}     1,401        641      1,281      1,166 {txt}{c |}{res}     4,489 
{txt}      2006 {c |}{res}     1,084        354      1,675        920 {txt}{c |}{res}     4,033 
{txt}      2007 {c |}{res}     1,039        524      1,406        735 {txt}{c |}{res}     3,704 
{txt}      2008 {c |}{res}     1,039      1,015      1,346      1,409 {txt}{c |}{res}     4,809 
{txt}      2009 {c |}{res}       896        650      1,052      1,164 {txt}{c |}{res}     3,762 
{txt}      2010 {c |}{res}       892        682      1,519      1,709 {txt}{c |}{res}     4,802 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    12,185      8,253     12,227     12,292 {txt}{c |}{res}    44,957 

{txt}
{com}. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. 
. /*** Table A.4 ***/
. 
. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. ** Model 3
. 
. quietly: xtpcse log_ed_p  months2election months_sq ep_election reg_elect mip unempl conflict bse cdu_crisis terror afghan flood worldcup crisis  l.log_ed_p i.issue if period==2
{txt}
{com}. est store model3
{txt}
{com}. 
. ** Model 4
. quietly: xtpcse log_ed_p  months2election months_sq ep_election reg_elect mip unempl conflict bse cdu_crisis terror afghan flood worldcup crisis i.coalition l.log_ed_p i.issue if period==2
{txt}
{com}. est store model4
{txt}
{com}. 
. 
. ** Display results
. estout model3 model4 , cells(b(fmt(3) star) se(par fmt(3))) stats(N r2 , fmt(4)) label
{res}
{txt}{hline 52}
{txt}                           model3          model4   
{txt}                             b/se            b/se   
{txt}{hline 52}
{txt}Number of months t~o{res}        0.045           0.082   {txt}
                    {res}      (0.054)         (0.056)   {txt}
{txt}Number of months t~o{res}       -0.001          -0.001   {txt}
                    {res}      (0.001)         (0.001)   {txt}
{txt}European Parliamen~n{res}       -0.159          -0.031   {txt}
                    {res}      (0.345)         (0.347)   {txt}
{txt}State Parliament E~n{res}       -0.080          -0.141   {txt}
                    {res}      (0.115)         (0.116)   {txt}
{txt}Most important pro~m{res}        0.012           0.012   {txt}
                    {res}      (0.009)         (0.009)   {txt}
{txt}Unemployment        {res}       -0.141***       -0.064   {txt}
                    {res}      (0.038)         (0.061)   {txt}
{txt}Pre-electoral conf~t{res}        0.010           0.010   {txt}
                    {res}      (0.013)         (0.013)   {txt}
{txt}BSE crisis          {res}        0.203           0.188   {txt}
                    {res}      (0.211)         (0.206)   {txt}
{txt}CDU funding scandal {res}        0.183           0.557   {txt}
                    {res}      (0.398)         (0.416)   {txt}
{txt}9/11 Terror attacks {res}        0.481           0.712*  {txt}
                    {res}      (0.305)         (0.313)   {txt}
{txt}Afghanistan War     {res}       -0.406          -0.448   {txt}
                    {res}      (0.436)         (0.425)   {txt}
{txt}Flood               {res}        0.000           0.000   {txt}
                    {res}          (.)             (.)   {txt}
{txt}2006 Worldcup       {res}        0.000           0.000   {txt}
                    {res}          (.)             (.)   {txt}
{txt}Economic crisis     {res}       -0.398           0.035   {txt}
                    {res}      (0.211)         (0.281)   {txt}
{txt}L.log_ed_p          {res}        0.040           0.033   {txt}
                    {res}      (0.041)         (0.041)   {txt}
{txt}Infrastructure      {res}        0.000           0.000   {txt}
                    {res}          (.)             (.)   {txt}
{txt}Education           {res}       -0.359          -0.354   {txt}
                    {res}      (0.189)         (0.189)   {txt}
{txt}Environment         {res}       -0.375*         -0.377*  {txt}
                    {res}      (0.166)         (0.166)   {txt}
{txt}Energy              {res}       -0.586**        -0.591** {txt}
                    {res}      (0.195)         (0.195)   {txt}
{txt}Defence             {res}       -0.339*         -0.343*  {txt}
                    {res}      (0.171)         (0.171)   {txt}
{txt}Civil Rights        {res}        0.631**         0.634** {txt}
                    {res}      (0.200)         (0.201)   {txt}
{txt}Taxes               {res}       -0.368          -0.371*  {txt}
                    {res}      (0.188)         (0.187)   {txt}
{txt}Employment and Soc~l{res}       -0.588          -0.621   {txt}
                    {res}      (0.589)         (0.585)   {txt}
{txt}Agriculture         {res}       -0.191          -0.192   {txt}
                    {res}      (0.170)         (0.170)   {txt}
{txt}Equal Opportunities {res}       -0.194          -0.203   {txt}
                    {res}      (0.199)         (0.199)   {txt}
{txt}coalition=1         {res}                        0.000   {txt}
                    {res}                          (.)   {txt}
{txt}coalition=2         {res}                        0.289   {txt}
                    {res}                      (0.174)   {txt}
{txt}coalition=3         {res}                       -0.310   {txt}
                    {res}                      (0.372)   {txt}
{txt}_cons               {res}       -2.986**        -4.586***{txt}
                    {res}      (0.966)         (1.170)   {txt}
{txt}{hline 52}
{txt}N                   {res}     646.0000        646.0000   {txt}
{txt}r2                  {res}       0.1382          0.1461   {txt}
{txt}{hline 52}

{com}. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. 
. /*** Table A.6 ***/
. 
. 
. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. keep ym tcd  months2election  months_sq ep_election reg_elect unempl bse cdu_crisis terror afghan flood worldcup crisis coalition  
{txt}
{com}. 
. duplicates drop

{p 0 4}{txt}Duplicates in terms of {txt} all variables{p_end}

(2508 observations deleted)

{com}. 
. tsset ym 
{res}{txt}{col 9}time variable:  {res}{col 25}ym, 480 to 611
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. quietly: rreg tcd  months2election  months_sq ep_election reg_elect unempl bse cdu_crisis terror afghan flood worldcup crisis i.coalition l.tcd
{txt}
{com}. est store model5
{txt}
{com}. 
. 
. estout model5 , cells(b(fmt(4) star) se(par fmt(3))) stats(N r2 , fmt(4)) label
{res}
{txt}{hline 36}
{txt}                           model5   
{txt}                             b/se   
{txt}{hline 36}
{txt}Number of months t~o{res}      -0.0133** {txt}
                    {res}      (0.005)   {txt}
{txt}Number of months t~o{res}       0.0003***{txt}
                    {res}      (0.000)   {txt}
{txt}European Parliamen~n{res}       0.0478   {txt}
                    {res}      (0.110)   {txt}
{txt}State Parliament E~n{res}      -0.0658   {txt}
                    {res}      (0.035)   {txt}
{txt}Unemployment        {res}      -0.0278   {txt}
                    {res}      (0.016)   {txt}
{txt}BSE crisis          {res}      -0.0664   {txt}
                    {res}      (0.093)   {txt}
{txt}CDU funding scandal {res}       0.0834   {txt}
                    {res}      (0.068)   {txt}
{txt}9/11 Terror attacks {res}       0.2138   {txt}
                    {res}      (0.116)   {txt}
{txt}Afghanistan War     {res}      -0.1905   {txt}
                    {res}      (0.124)   {txt}
{txt}Flood               {res}      -0.0445   {txt}
                    {res}      (0.158)   {txt}
{txt}2006 Worldcup       {res}      -0.0041   {txt}
                    {res}      (0.109)   {txt}
{txt}Economic crisis     {res}      -0.0333   {txt}
                    {res}      (0.066)   {txt}
{txt}coalition=1         {res}       0.0000   {txt}
                    {res}          (.)   {txt}
{txt}coalition=2         {res}       0.0340   {txt}
                    {res}      (0.042)   {txt}
{txt}coalition=3         {res}      -0.0465   {txt}
                    {res}      (0.092)   {txt}
{txt}L.Taxicab Distance~){res}       0.0801   {txt}
                    {res}      (0.055)   {txt}
{txt}_cons               {res}       0.8689***{txt}
                    {res}      (0.197)   {txt}
{txt}{hline 36}
{txt}N                   {res}     131.0000   {txt}
{txt}r2                  {res}       0.2651   {txt}
{txt}{hline 36}

{com}. 
. 
. 
. 
. *****************************************************************************************************************************************************************
. 
. /*** Table A.7 ***/
. 
. 
. use "SagarzazuKluever_ReplicationData1.dta", clear
{txt}(Sagarzazu/Kl�ver (PSRM): Coalition governments and party competition)

{com}. 
. xtset issue id
{res}{txt}{col 8}panel variable:  {res}issue (strongly balanced)
{txt}{col 9}time variable:  {res}{col 25}id, 1 to 132
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. gen lag_ed_p=l.ed_p_
{txt}(100 missing values generated)

{com}. 
. quietly: betafit ed_p_, mu( months2election months_sq ep_election reg_elect mip unempl  bse cdu_crisis terror afghan flood worldcup crisis i.coalition  lag_ed_p )
{txt}
{com}. 
. est store model6
{txt}
{com}. 
. estout model6 , cells(b(fmt(3) star) se(par fmt(3))) stats(N r2 , fmt(4)) label
{res}
{txt}{hline 36}
{txt}                           model6   
{txt}                             b/se   
{txt}{hline 36}
{res}mu                                  {txt}
{txt}Number of months t~o{res}       -0.015** {txt}
                    {res}      (0.006)   {txt}
{txt}Number of months t~o{res}        0.000***{txt}
                    {res}      (0.000)   {txt}
{txt}European Parliamen~n{res}        0.133   {txt}
                    {res}      (0.130)   {txt}
{txt}State Parliament E~n{res}       -0.081   {txt}
                    {res}      (0.043)   {txt}
{txt}Most important pro~m{res}        0.002*  {txt}
                    {res}      (0.001)   {txt}
{txt}Unemployment        {res}       -0.065***{txt}
                    {res}      (0.019)   {txt}
{txt}BSE crisis          {res}       -0.060   {txt}
                    {res}      (0.112)   {txt}
{txt}CDU funding scandal {res}        0.075   {txt}
                    {res}      (0.081)   {txt}
{txt}9/11 Terror attacks {res}        0.254   {txt}
                    {res}      (0.131)   {txt}
{txt}Afghanistan War     {res}       -0.246   {txt}
                    {res}      (0.141)   {txt}
{txt}Flood               {res}        0.103   {txt}
                    {res}      (0.189)   {txt}
{txt}2006 Worldcup       {res}       -0.123   {txt}
                    {res}      (0.127)   {txt}
{txt}Economic crisis     {res}       -0.150   {txt}
                    {res}      (0.079)   {txt}
{txt}coalition=1         {res}        0.000   {txt}
                    {res}          (.)   {txt}
{txt}coalition=2         {res}        0.113*  {txt}
                    {res}      (0.049)   {txt}
{txt}coalition=3         {res}       -0.047   {txt}
                    {res}      (0.110)   {txt}
{txt}lag_ed_p            {res}        1.520***{txt}
                    {res}      (0.251)   {txt}
{txt}_cons               {res}       -2.726***{txt}
                    {res}      (0.238)   {txt}
{txt}{hline 36}
{res}ln_phi                              {txt}
{txt}_cons               {res}        3.488***{txt}
                    {res}      (0.031)   {txt}
{txt}{hline 36}
{txt}N                   {res}    2374.0000   {txt}
{txt}r2                  {res}                {txt}
{txt}{hline 36}

{com}. 
. 
. 
. *****************************************************************************************************************************************************************
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Heike.Kluever\Dropbox\Kluver&Sagarzazu\PSRM Submission\Replication materials\SagarzazuKluever_ReplicationLogFile.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}11 May 2015, 11:54:05
{txt}{.-}
{smcl}
{txt}{sf}{ul off}